﻿
namespace Wolfpack.Contrib.DashboardAdapter.Filters
{
    public static class WolfpackDotLiquidFilters
    {
        public static string ResultImageBasedOnBool(string input)
        {
            if (string.IsNullOrWhiteSpace(input))
                return string.Empty;
            
            bool result;

            if (bool.TryParse(input, out result))
                return result ? "ResultTrue.png" : "ResultFalse.png";
            
            return string.Empty;
        }
    }
}